<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'subject-form',
	'enableAjaxValidation'=>false,
  'htmlOptions'=>array('class'=>'form-horizontal'),
)); ?>

	<p class="note">Những trường đánh dấu <span class="required">*</span> là trường bắt buộc.</p>

	<?php echo $form->errorSummary($model,'','',array('class'=>'alert alert-error')); ?>

	<div class="control-group">
		<?php echo $form->labelEx($model,'subject',array('class'=>'control-label')); ?>
		<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>255)); ?>
	</div>

	<?php echo CHtml::submitButton($model->isNewRecord ? 'Tạo mới' : 'Cập nhật', array('class'=>'btn btn-success')); ?>

<?php $this->endWidget(); ?>